
package me.hunche.app.service.impl;

import java.util.ArrayList;
import java.util.List;

import me.hunche.app.dao.UserDao;
import me.hunche.app.domain.User;
import me.hunche.app.service.UserService;

import org.springframework.stereotype.Service;

import com.feinno.framework.common.service.EntityServiceImpl;

@Service("userService")
public class UserServiceImpl extends EntityServiceImpl<User, UserDao> implements UserService {

	public List<User> findByIds(String ids) {
		String[] array = ids.split(",");
		List<Long> list = new ArrayList();
		for(String id:array){
			list.add(new Long(id));
		}
		
		return getEntityDao().findByIdIn(list);
	}

	public List<User> findByTeamId(Long teamId) {
		// TODO Auto-generated method stub
		return  getEntityDao().findByTeamId(teamId);
	}

}
